/*
 * timer1.h
 *
 *  Created on: 2015-03-10
 *      Author: root
 */

#include "inc/lm4f120h5qr.h"
#include <stdlib.h>
#include <stdio.h>

#include "inc/hw_types.h"
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "driverlib/interrupt.h"
#include "driverlib/gpio.h"
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/timer.h"
#include "driverlib/adc.h"

#include "inc/hw_sysctl.h"
#include "inc/hw_gpio.h"	//for unlocking
#include "definitions.h"
#include "uart.h"
#include "circbuffer.h"
#include "messages.h"
//#include "masterIncludes.h"

int gtimer1Flags;
unsigned long ulPeriod;
int pollFreq;
int buffercnt;


//B.B. - Beam Break //H.E. - Hall Effect
signed char buffer[5];	//0-B.B.1, 1-B.B.2, 2-B.B.3, 3-H.E.2, 4-H.E.2
char gOutput[5];
char gHistory[5];
char gStateChange[5];


void initTimer1(void);
void timer1Handler(void);
